﻿using System;
using System.ComponentModel;
using PetaPoco;
using PmSoft;
using PmSoft.Caching;

namespace Modules
{
    /// <summary>
    /// 项目班组按天统计
    ///</summary>
    [TableName("report_project_group_days")]
    [Description("项目班组考勤日统计")]
    [PrimaryKey("id", AutoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class ReportProjectGroupDays : IEntity
    {
        /// <summary>
        /// 主键 
        ///</summary>
        [Column("id")]
        public int Id { get; set; }
        /// <summary>
        /// 项目id 
        ///</summary>
        [Column("project_id")]
        public int ProjectId { get; set; }
        /// <summary>
        /// 日期 
        ///</summary>
        [Column("date")]
        public DateTime Date { get; set; }
        /// <summary>
        /// 在场人数 
        ///</summary>
        [Column("number_attendees")]
        public int NumberAttendees { get; set; }
        /// <summary>
        /// 实际考勤人数
        /// </summary>
        [Column("actual_attendance")]
        public int ActualAttendance { get; set; }
        /// <summary>
        /// 异常人数（应考勤人数-实际考勤人数，取绝对值）
        /// </summary>
        [Column("abnormal_number_people")]
        public int AbnormalNumberPeople { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
        [Column("create_time")]
        public DateTime CreateTime { get; set; }

        #region IEntity 成员

        [Ignore]
        object IEntity.EntityId { get { return this.Id; } }

        #endregion

    }
}
